package com.qf.service.impl;

import com.qf.dao.PurdProductsDao;
import com.qf.dao.impl.PurdProductsDaoImpl;
import com.qf.entity.PurdProducts;
import com.qf.service.PurdProductsService;

public class PurdProductsServiceImpl implements PurdProductsService {

    private PurdProductsDao dao = new PurdProductsDaoImpl();

    @Override
    public boolean addProducts(PurdProducts pp) {
        int res = dao.insertProducts(pp);
        if (res >= 0){
            return true;
        }
        return false;
    }
}
